﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using Newtonsoft.Json;
using Newtonsoft.Json.Linq;

public partial class Error : System.Web.UI.Page
{

    protected string error;
    protected string name;
    protected string message;
    protected string link;

    protected void Page_Load(object sender, EventArgs e)
    {

        JObject o = JObject.Parse(Session["error"].ToString());

        if (o["name"] != null)
        {
            name = o["name"].ToString();
        }

        if (o["message"] != null)
        {
            message = o["message"].ToString();
        }

        if (o["information_link"] != null)
        {
            link = o["information_link"].ToString();
        }

    }
}